Skip to contentSkip to conversation

amdgpu on SI devices is much slower then radeon

Bug 97882 [email protected] 1 participant 9 messages Sep 21, 2016 – Aug 1, 2017

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=97882

Bug ID: 97882
Summary: [amdgpu SI] amdgpu on SI devices is much slower then
radeon
Product: Mesa
Version: git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

Created attachment 126682
--> https://bugs.freedesktop.org/attachment.cgi?id=126682&action=edit
dmesg

AMDGPU on SI devices appears to be much slower then radeon currently is.

For example, Unigine Heaven 4.0:
AMDGPU FPS:18.3 Score:460 Min FPS:9.5 Max FPS:46.1 RADEON FPS:38.4 Score:967 Min FPS:7.5 Max FPS:83.5

Reading /sys/kernel/debug/dri/0/radeon_pm_info both report the same values:
uvd vclk: 0 dclk: 0
power level 3 sclk: 105000 mclk: 140000 vddc: 1206 vddci: 1025 pcie gen:
2

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=97882

--- Comment #1 from Trevor Davenport <[email protected]> --- Created attachment 126683
--> https://bugs.freedesktop.org/attachment.cgi?id=126683&action=edit
Xorg.0.log

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97882

--- Comment #2 from Trevor Davenport <[email protected]> --- The above numbers where using the modesetting driver since I was trying to keep as much the same between radeon and amdgpu. I get similar behavior from amdgpu though.

Both radeon and amdgpu built from commit:
https://cgit.freedesktop.org/~agd5f/linux/
drm-next-4.9-wip

commit 25114c509cc39b387aa358a86fa48c855266a6fe
Author: Alex Deucher <[email protected]>
Date: Wed Sep 14 14:15:34 2016 -0400

drm/radeon/atif: Send a hotplug event when we get dgpu display request

Mesa:
commit 6b0ba02cae1526d6e6671a9ff620fd3bd7d4d032

llvm:
commit 338f974b6e4f5d5d004d36d0d446289280d0c372

drm:
commit 2d00869599a1c853238401a38a334c3bc8673343

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97882

--- Comment #3 from Maxim Sheviakov <[email protected]> --- Same here. Using Arch x86_64 with linux-ck 4.11.2 and mesa 17.1.0. AMDGPU's performance is about 60~70% of radeon's on MSI R7 370 Armor 2X.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97882

--- Comment #4 from Maxim Sheviakov <[email protected]> --- Created attachment 131435
--> https://bugs.freedesktop.org/attachment.cgi?id=131435&action=edit
dmesg | egrep 'drm|amdgpu'

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97882

--- Comment #5 from Maxim Sheviakov <[email protected]> --- Created attachment 131436
--> https://bugs.freedesktop.org/attachment.cgi?id=131436&action=edit
dmesg | egrep 'drm|radeon'

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97882

--- Comment #6 from Trevor Davenport <[email protected]> ---

Quoted 1 line

From phoronix's data this appears to not happen on Tahiti chips. The 270x and

370 are always slower on amdgpu compared to radeon.

See http://www.phoronix.com/scan.php?page=article&item=linux-411-gcn10&num=2

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97882

--- Comment #7 from Trevor Davenport <[email protected]> --- This is fixed by the following commit:

author Jean Delvare <[email protected]> 2017-07-30 08:18:25 (GMT)
committer Alex Deucher <[email protected]> 2017-07-31
20:30:42 (GMT)

commit  e5c8d400da67abc1c033b9a4af1806926b55e5f6 (patch)
tree    cf3dac459890ed900416d4087ae0603d4aa42b6f
parent  29805b5f60d88c56ae7e91ae231f0ff8bf1983b8 (diff)

drm/amdgpu: Fix undue fallthroughs in golden registers initialization

As I was staring at the si_init_golden_registers code, I noticed that the Pitcairn initialization silently falls through the Cape Verde initialization, and the Oland initialization falls through the Hainan initialization. However there is no comment stating that this is intentional, and the radeon driver doesn't have any such fallthrough, so I suspect this is not supposed to happen.

Commit can be seen here:
https://cgit.freedesktop.org/~agd5f/linux/commit/?h=drm-next-4.14-wip&id=e5c8d400da67abc1c033b9a4af1806926b55e5f6

With this fix I now get performance approximately equal to that of radeon.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97882

Trevor Davenport <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel